﻿using CoreModule;
using Microsoft.EntityFrameworkCore;
using NPOI.SS.UserModel;
using NPOI.XSSF.UserModel;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Linq.Expressions;
using System.Windows;
using System.Windows.Automation.Peers;
using System.Windows.Controls;
namespace Yuwell.MedicalMultiParameter.App.Views
{
    /// <summary>
    /// BloodPressureExportView.xaml 的交互逻辑
    /// </summary>
    public partial class ManagementExportView : UserControl, INotifyPropertyChanged
    {
        //private readonly CollectionViewSource _listingDataView;
        //private string searchPatientName;
        //public string SearchPatientName { get { return this.searchPatientName; } set { this.searchPatientName = value; 
        //        OnPropertyChanged("SearchPatientName"); } }
        //private string searchPatientWdCode;
        //public string SearchPatientWdCode { get { return this.searchPatientWdCode; }
        //    set { this.searchPatientWdCode = value; OnPropertyChanged("SearchPatientWdCode"); } }
        //private string searchPatientCardId;
        //public string SearchPatientCardId { get { return this.searchPatientCardId; } 
        //    set { this.searchPatientCardId = value; OnPropertyChanged("SearchPatientCardId"); } }
        public List<CoreModule.MeasurementResultInfo> ToExportBloodPressures { get; set; }
        //public BloodPressureExportView(string searchPatientName, string searchPatientWdCode, string searchPatientCardId)
        //{
        //    this.searchPatientName = searchPatientName;
        //    this.searchPatientWdCode = searchPatientWdCode;
        //    this.searchPatientCardId = searchPatientCardId;
        //    InitializeComponent();
        //    //_listingDataView = (CollectionViewSource)(Resources["BgListingDataView"]);
        //    DataContext = this;
        //    this.RefreshTable();
        //}
        public int StartIndex { get; set; }
        public ManagementExportView(List<MeasurementResultInfo> bloodPressures)
        {
            ToExportBloodPressures = bloodPressures;
            InitializeComponent();
  
            DataContext = this;
      
        }
        public event PropertyChangedEventHandler PropertyChanged;
    }
}
